package com.example.finallyjob.mapper;

import com.example.finallyjob.entity.Article;
import com.example.finallyjob.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface IndexMapper {
    List<Article> NewArticle(@Param("type") String type);
    List<Article> HotArticle(@Param("type") String type);
    List<Article> selectTitle(Article article);
    List<User> selectU(User user);
    List<Article> Zone(Article article);
    Article selectByNum(Article article);
    User selectById(User user);
}
